/*
 * Session.java
 * Created on March 23, 2007, 10:16 AM
 * @author: dwight fellman
 * $Id: Degree.java 38 2007-03-25 16:27:54Z dwight $
 */

package CSIS543TFinalProject;

/**
 * Sessions: a simple data structure. Combines a year and a semester.
 * @author dwight fellman
 */
public class Session {
   private int year;
   private Semester semester;

   public Session(int year, Semester semester) {
      this.setYear(year);
      this.setSemester(semester);
   }

   public String toString() {
      Integer i = getYear();
      return getSemester().toString() + " " + Integer.toString(getYear());
   }

   public int getYear() {
      return year;
   }

   public void setYear(int year) {
      this.year = year;
   }

   public Semester getSemester() {
      return semester;
   }

   public void setSemester(Semester semester) {
      this.semester = semester;
   }
}